package aar.test.tessocr.EventMessage;

/**
 * author : haoda
 * date :  2019/1/2  14:48
 * company : 厦门翎鹿科技有限公司
 * description : 定义消息事件类
 **/
public class MessageEvent {
    /**
     * 实体
     */
    private Object object;
    /**
     * 消息
     */
    private String message;
    /**
     * 消息类型
     */
    private int type;

    public final static int SEARCH_CABINET = 1;
    public final static int ORDERID = 2;
    public final static int ADD_DEVICE = 3;
    public final static int DELETE_DEVICE = 4;
    public final static int ADD_MOVEDATA = 5;
    public final static int DELETE_MOVEDATA = 6;
    public final static int UPDATE_VIEW = 8;
    public final static int ADD_USER_TMP = 9;

    public MessageEvent(int type, String message) { //1.快递柜搜索；2.目标名称；3.用户昵称；4.要切断的手环id
        this.message = message;
        this.type = type;
    }

    public MessageEvent(int type, Object object) {
        this.object = object;
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}